package com.njmaomao.gj.pyot.common.bean.dto;

import com.njmaomao.gj.pyot.common.bean.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

@ApiModel(value = "申请退款参数")
public class RefundReqDTO extends BaseRequest {

    @ApiModelProperty(notes = "支付时用的合生元内部订单号 与支付流水号tradeNo二选一")
    private String orderCode;

    @ApiModelProperty(notes = "支付流水号 与合生元内部订单号orderCode二选一")
    private String tradeNo;

    @ApiModelProperty(notes = "本次退款单号 必传")
    @NotBlank
    private String refundOrderCode;

    @ApiModelProperty(notes = "退单成功回调url；如果不填，可自行监听订单状态队列，订单支付完成时会向此队列发送“已支付”消息")
    private String callBackUrl;

    @ApiModelProperty(notes = "退款金额，单位（分）必传")
    private Integer refundFee;

    @ApiModelProperty(notes = "退款原因")
    private String refundDesc;

    @ApiModelProperty(value = "是否接仿真环境，默认false")
    private boolean isSandbox = false;

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public boolean getIsSandbox() {
        return isSandbox;
    }

    public void setIsSandbox(boolean isSandbox) {
        this.isSandbox = isSandbox;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getRefundOrderCode() {
        return refundOrderCode;
    }

    public void setRefundOrderCode(String refundOrderCode) {
        this.refundOrderCode = refundOrderCode;
    }

    public String getCallBackUrl() {
        return callBackUrl;
    }

    public void setCallBackUrl(String callBackUrl) {
        this.callBackUrl = callBackUrl;
    }

    public Integer getRefundFee() {
        return refundFee;
    }

    public void setRefundFee(Integer refundFee) {
        this.refundFee = refundFee;
    }

    public String getRefundDesc() {
        return refundDesc;
    }

    public void setRefundDesc(String refundDesc) {
        this.refundDesc = refundDesc;
    }
}
